home *** CD-ROM | disk | FTP | other *** search
- !!Script
- // Copyright ⌐ 1997-1998 - Modelworks Software
-
- // Insert script helper for:
-
- /**
- @Object: static Application
- @Method: getDocumentTemplate - returns a DocumentTemplate object
- matching the fileType. If an exact match cannot be found null
- is returned. The fileType parameter can include a '.' followed
- by the file extension or can just be the file extension. To get the
- no file type document template set the fileType to ".".
- @Syntax: Application.getDocumentTemplate(fileType)
- @Summary: getDocumentTemplate - returns a DocumentTemplate
- */
-
- function DoCommand()
- {
- var editor = getActiveEditor();
- if (editor)
- {
- var selection = editor.getSelection();
- editor.replace("Application.getDocumentTemplate(fileType)", selection);
- editor.setActive("Insert Application.getDocumentTemplate");
- }
- }
-
- !!/Script
-